package com.youi.entity;

import java.util.Date;
import java.util.List;

import com.youi.common.DelStatus;

import java.sql.*;


import java.io.Serializable;


/**
 * 购物车信息
 * @author XJY
 */
public class Goodscar implements Serializable {

	private Long id;							//ID
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Long userId;					    //用户id
	private Double amount;						//合计金额
	
	
	List<Goodsandgoodscar> goodsandgoodscarsList;//购物车商品信息

    public Goodscar(){

    }

    public Goodscar(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }


    public Goodscar(Long userId,Double amount) {
       this.gmtCreated=new Date();
       this.delStatus=DelStatus.NODEL;
       this.gmtModify=gmtCreated;
       this.userId=userId;
       this.amount=amount;
    }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setUserId(Long userId){
		this.userId=userId;
	}

	public Long getUserId(){
		return userId;
	}

	public void setAmount(Double amount){
		this.amount=amount;
	}

	public Double getAmount(){
		return amount;
	}

	public List<Goodsandgoodscar> getGoodsandgoodscarsList() {
		return goodsandgoodscarsList;
	}

	public void setGoodsandgoodscarsList(List<Goodsandgoodscar> goodsandgoodscarsList) {
		this.goodsandgoodscarsList = goodsandgoodscarsList;
	}

}
